package com.yzr.common.thread;

/**
 * @description
 * @author: yx-0173
 * @date: 2021-06-18 14:15
 **/
public class Ncpu {


    /**
     * 获取本即处理器的核大小
     *
     * @return integer
     */
    public static Integer getCpuNum() {
        return Runtime.getRuntime().availableProcessors();
    }
}
